<%@ taglib uri="/WEB-INF/vectrics.tld" prefix="vectrics" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<%@ page import="org.vectrics.recruiter.job.Job" %>
<%@ page import="org.vectrics.SystemException" %>
<%@ page import="org.vectrics.recruiter.*" %>

<%
	String jobId = request.getParameter("jobId");

	if ((jobId == null) || (jobId.trim().length() == 0))
		jobId = (String) request.getSession().getAttribute(
				"current-job");
	String candidateMgrLink = request.getContextPath()
			+ "/admin/jobs/candidate/index.do?id=" + jobId;
	String jobChangeSkillsLink = request.getContextPath()
			+ "/admin/job/skill/skillEntry.do";
	if (jobId == null)
		throw new SystemException("JobId is null");

	Long jobIdLong = new Long(jobId);
	Job job = RecruitServiceLocator.getJobProvider().findJob(jobIdLong);
	if (job == null) {
		throw new SystemException("Could not find job, id = " + jobId);
	}
%>
	<font class="warnFont">Under Construction</font>
	<table>
		<tr>
			<td valign="top">
				<vectrics:recruiterJobView jobId="<%=jobId%>" summary="true"/>
			</td>
			<td valign="top" align="right">
				<table cellpadding="1" cellspacing="1">
					<tr>
						<td>
							<form action="/hrs-intranet/admin/jobs/view.do" method="POST">
								<input type="hidden" name="jobId" value="<%=jobId%>">
								<input type="submit" name="submit" value="View Job" class="wideButton">
							</form>
						</td>
					</tr>
					
					<tr>
						<td>
							<form action="/hrs-intranet/admin/buffer/job/add.do" method="POST">
								<input type="hidden" name="jobId" value="<%=jobId%>">
								<input type="hidden" name="recordId" value="<%=jobId%>">
								<input type="hidden" name="objectType" value="<%=Job.OBJECT_TYPE%>">
								<input type="submit" name="submit" value="Buffer" class="wideButton">
							</form>
						</td>
					</tr>
					
					<tr>
						<td>
				<form action="<%=candidateMgrLink%>" method="POST"><input
					type="hidden" name="jobId" value="<%=jobId%>"> <input
					type="submit" name="submit" value="Candidates" class="wideButton">
				</form>
				</td>
					</tr>
					<tr>
						<td>
							<form 	action="/hrs-intranet/admin/jobs/skill/select.do" 
									method="post">
								<input type="hidden" name="jobId" value="<%=jobId%>">
								<input 	type="submit" 
										name="submit" 
										value="Select Skills" 
										class="wideButton">
							</form>
						</td>
					</tr>
				
				</table>
			</td>
		</tr>
	</table>
<br>
<vectrics:jobSkillSummary jobId="<%=jobId%>" />
<br>


